<!-- Load jQuery -->
<script src="tiny_mce_jquery_3.3.9.1/jquery-1.4.2.min.js" type='text/javascript'></script>

<!-- Load jQuery build -->
<script type="text/javascript" src="tiny_mce_jquery_3.3.9.1/jquery.tinymce.js"></script>
<script type="text/javascript">
	$(function() {
		$('textarea.tinymce').tinymce({
			// Location of TinyMCE script
	    	script_url : '/tiny_mce_jquery_3.3.9.1/tiny_mce.js',
	    	
	        mode : "textareas",
	        theme : "advanced",
	        plugins : "table,advhr,advimage,advlink,emotions,insertdatetime,preview,searchreplace,"+
	                  "print,contextmenu,inlinepopups,fullscreen",
	        file_browser_callback : "tinyMCE.org_richercms_call.loadFileName",
	        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
	        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
	        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,fullscreen",
	        theme_advanced_toolbar_location : "top",
	        theme_advanced_toolbar_align : "left",
	        theme_advanced_path_location : "bottom",
	        content_css : "/RicherCMS.css",
	        plugin_insertdate_dateFormat : "%Y/%m/%d",
	        plugin_insertdate_timeFormat : "%H:%M:%S",
	        extended_valid_elements : "a[name|href|target|title|onclick],img[class|style|src|border=0|alt|title|hspace"+
	                                  "|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|"+
	                                  "noshade],font[face|size|color|style],span[class|align|style]",
	        fullscreen_new_window : false,
	        fullscreen_settings : {
	        	theme_advanced_path_location : "top"
	        }
		});
	});
</script>

<form method="post" action="somepage">
	<textarea id="content" name="content" class="tinymce" style="width:100%">
	</textarea>
coucou
	<!-- Some integration calls -->
	<a href="javascript:;" onmousedown="$('#content').tinymce().show();">[Show]</a>
	<a href="javascript:;" onmousedown="$('#content').tinymce().hide();">[Hide]</a>
	<a href="javascript:;" onmousedown="$('#content').tinymce().execCommand('Bold');">[Bold]</a>
	<a href="javascript:;" onmousedown="alert($('#content').html());">[Get contents]</a>
	<a href="javascript:;" onmousedown="alert($('#content').tinymce().selection.getContent());">[Get selected HTML]</a>
	<a href="javascript:;" onmousedown="alert($('#content').tinymce().selection.getContent({format : 'text'}));">[Get selected text]</a>
	<a href="javascript:;" onmousedown="alert($('#content').tinymce().selection.getNode().nodeName);">[Get selected element]</a>
	<a href="javascript:;" onmousedown="$('#content').tinymce().execCommand('mceInsertContent',false,'<b>Hello world!!</b>');">[Insert HTML]</a>
	<a href="javascript:;" onmousedown="$('#content').tinymce().execCommand('mceReplaceContent',false,'<b>{$selection}</b>');">[Replace selection]</a>
</form>